From 968099c0a87c11b04e7428109642eac55e77ea74 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 10 Jul 2015 13:56:54 +0200 Subject: [PATCH] x86/monitor: move comment after 35f4aec5a0 It belongs with the check, not at a random other place. Signed-off-by: Jan Beulich --- xen/arch/x86/monitor.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/monitor.c b/xen/arch/x86/monitor.c index d8fe98a74a..0da855e38b 100644 --- a/xen/arch/x86/monitor.c +++ b/xen/arch/x86/monitor.c @@ -46,6 +46,10 @@ static inline uint32_t get_capabilities(struct domain *d) { uint32_t capabilities = 0; + /* + * At the moment only Intel HVM domains are supported. However, event + * delivery could be extended to AMD and PV domains. + */ if ( !is_hvm_domain(d) || !cpu_has_vmx ) return capabilities; @@ -70,11 +74,6 @@ int monitor_domctl(struct domain *d, struct xen_domctl_monitor_op *mop) if ( rc ) return rc; - /* - * At the moment only Intel HVM domains are supported. However, event - * delivery could be extended to AMD and PV domains. - */ - if ( mop->op == XEN_DOMCTL_MONITOR_OP_GET_CAPABILITIES ) { mop->event = capabilities; -- 2.30.2